# coding:utf-8
import os

basedir = os.path.abspath(os.path.dirname(__file__))
SECRET_KEY = '1212ejreejehejfehjfskffksd'

SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123456@127.0.0.1:3306/mytest' # 默认配置：用户名root 无密码 数据库名称为mytest
SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_COMMIT_ON_TEARDOWN = True

# 发送邮件
MAIL_SERVER = ''  # 发送邮件的SMTP地址 新浪smtp.sina.com
MAIL_PORT = 25
MAIL_USE_TLS = True
MAIL_USE_SSL = False
MAIL_USERNAME = ''  # 邮箱用户名 如：3432432344@qq.com
MAIL_PASSWORD = ''  # 邮箱密码

BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TASK_SERIALIZER = 'json'
CELERY_ACCEPT_CONTENT = ['json', 'pickle']

ADMIN_USER = 'teacher'
ADMIN_PASSWORD = '123123'
ADMIN_EMAIL = '' # 老师邮箱
